package examination_online.service.impl;

import examination_online.bean.User;
import examination_online.dao.UserDao;
import examination_online.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.sql.SQLException;

/**
 * @Auther: GongXl
 * @Date: 029 08:47
 * @Description:
 */
@Service
@Transactional
public class UserService implements IUserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User findUserById(int id) throws SQLException {
        userDao.findUserById(1);
        return null;
    }
}